package io.renren.membermanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class SysUser{

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("real_name")
    private String realName;

    @TableField("head_url")
    private String headUrl;

    @TableField("gender")
    private int gender = 2;

    @TableField("email")
    private String email;

    @TableField("mobile")
    private String mobile;

    @TableField("dept_id")
    private Long deptId;

    @TableField("super_admin")
    private int superAdmin = 0;

    @TableField("status")
    private int status = 1;

    @TableField("creator")
    private Long creator;

    @TableField("create_date")
    private LocalDateTime createDate = LocalDateTime.now();

    @TableField("updater")
    private Long updater;

    @TableField("update_date")
    private LocalDateTime updateDate = LocalDateTime.now();
}
